package com.adderis.soft.presentation.model;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

import com.adderis.soft.domain.model.NomCommercial;
import com.adderis.soft.service.INomCommercialBo;


/**
 * 
 * Nom Commerical Managed Bean
 * 
 * @author reda
 * @version 1.0.0
 * 
 */
@ManagedBean(name = "nomCommercialMB")
public class NomCommercialMB {
	
	private List<NomCommercial> nomcommercials;
    
    @ManagedProperty("#{nomCommercialService}")
    private INomCommercialBo service;
     
    @PostConstruct
    public void init() {
    	nomcommercials = service.findAll();
    }
 
    public List<NomCommercial> getNomcommercials() {
        return nomcommercials;
    }
 
    public void setService(INomCommercialBo service) {
        this.service = service;
    }
	
}
